package com.hongyun.tms.common.dto.mwork;

import com.alibaba.excel.annotation.ExcelProperty;
import com.hongyun.tms.common.annotation.excel.ExcelInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 船舶导出模板 响应
 *
 * @author liPeng
 * @date 2024-05-31
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ExcelInfo(fileName = "作业项目模板")
public class MWorkItemTemplateDto implements Serializable {
    @ApiModelProperty(value = "作业项目")
    @NotBlank(message = "作业项目不能为空")
    @Size(max = 20, message = "作业项目不能超过20个字符")
    @ExcelProperty(value = "作业项目(必填)", index = 0)
    private String workItem;

    @ApiModelProperty(value = "作业类型代码，字典")
    @NotBlank(message = "作业类型不能为空")
    @ExcelProperty(value = "作业类型(必填,助泊作业/特殊作业，选其一)", index = 1)
    private String workTypeCode;
}

